/**
 * @Author: hcc
 * @Date: 2022/04/08
 * @Last Modified by: hcc
 * @Last Modified time: 2022/04/08
 */
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 菜单路由
const menuRoutes = [{
  path: '/dealerFinanceP',
  meta: {
    title: '财务管理',
    icon: 'el-icon-s-cooperation'
  },
  redirect: '/dealerFinanceP',
  component: RouteView,
  children: [
    {
      path: '/dealerFinanceP/MoneyManage',
      meta: {
        title: '资金管理'
      },
      redirect: '/dealerFinanceP/MoneyManage',
      component: RouteView,
      children: [{
          path: '/dealerFinanceP/MoneyManage/DealerAccountQuery',
          meta: {
            title: '经销商账户查询',
            keepAlive: true
          },
          component: AsyncComponent('dealerFinanceP/MoneyManage/DealerAccountQuery')
        },

        {
          path: '/dealerFinanceP/MoneyManage/AccountDetailsQuery',
          meta: {
            title: '账户明细查询',
            keepAlive: true
          },
          component: AsyncComponent('dealerFinanceP/MoneyManage/AccountDetailsQuery')
        },
      ]
    },
  ]
}];
export default menuRoutes;
